<nav class="navbar navbar-default navbar-inverse">
    <input type="text" id="searchInput">
    <ul id="list"></ul>

    <div class="container">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header Sy">
                <a class="navbar-brand Sya" href="/index.html"></a>
            </div>
            <div class="collapse center-block" id="bs-example-navbar-collapse-1">
                <!---在此处设置ul居中-->
                <ul class="nav navbar-nav navbar-collapse ul1">
                    <li><a href="#">Android</a></li>
                    <li><a href="#">Windows</a></li>
                    <li><a href="/html/shop.html">商城</a></li>
                    <li><a href="#">服务</a></li>
                    <li><a href="#">新闻</a></li>
                    <li><a href="#">社区</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                            aria-expanded="false">语言 <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">English</a></li>
                            <li><a href="#">简体中文</a></li>
                            <li><a href="#">日本语</a></li>
                        </ul>
                    </li>
                    <li id="nologin"><a href="/html/login.html">登录</a></li>
                    <li class="dropdown" id="logining">
                        <a href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"
                            style="display:none"> <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="/html/cart.html">购物车</a></li>
                            <li id="rest"><a href="#">注销</a></li>
                        </ul>
                    </li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </div>
</nav>